import cn from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Tooltip from '@kuiper-components/tooltip';
import Icon from '../Icon';
import s from './style.module.css';

function Helper({ className, ...props }) {
	return (
		<Tooltip {...props} overlayClassName={s.helperT}>
			<Icon type="tip" className={cn(className, s.tipIcon)} />
		</Tooltip>
	);
}

Helper.propTypes = {
	className: PropTypes.string,
};
Helper.defaultProps = {
	className: '',
};

export default Helper;
